﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SimpleActionNoException.cs" company="Collaboris Ltd.">
//   Copyright (c) Collaboris Ltd. All rights Reserved.
// </copyright>
// <summary>
//   Defines the SimpleActionNoException type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Collaboris.Saf.Tests.Support.Actions
{
    using System.Collections.Generic;

    using Collaboris.Saf.Engine;

    using Entities;

    public class ActionToCreateDynamicPropertyOnUndo : ActionBase<StringList>
    {
        protected override ProcessStatus DoAction(SafContext context, StringList entity)
        {
            

            return ProcessStatus.Success;
        }

        protected override ProcessStatus UndoAction(SafContext context, StringList entity)
        {
            context.ActionProperties.Add("DynamicName", "New Mark Jones Undo", true);
            context.ActionProperties.Add("DynamicSurname", "New Surname Undo", true);

            return ProcessStatus.Success;
        }
    }
}